package com.ljkj.cordial.chat.bean;

import java.io.Serializable;

public class PayLoad implements Serializable {
    public final static int AVATAR = 0;
    public final static int TEXT = 1;
    public final static int FILE = 2;
    public final static int ITEM_PIC = 3;
    public final static int ITEM_VID = 4;
    public final static int DOWN_TIME = 5;
    public final static int SELECTED = 6;
    public final static int UNSELECT = 7;
    public final static int REQ_STATE = 8;
    public final static int VISIBLE = 9;
    public final static int INVISIBLE = 10;
    private int position;
    private int itemCount;

    public int getItemCount() {
        return itemCount;
    }

    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }

    private int[] type;

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int[] getType() {
        return type;
    }

    public void setType(int... type) {
        this.type = type;
    }

    public static PayLoad create(int... type) {
        PayLoad payLoad = new PayLoad();
        payLoad.setType(type);
        return payLoad;
    }

    public static PayLoad create() {
        PayLoad payLoad = new PayLoad();
        payLoad.setType(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        return payLoad;
    }

    public static PayLoad createNoText() {
        PayLoad payLoad = new PayLoad();
        payLoad.setType(0, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        return payLoad;
    }

    public static PayLoad createNoAvatar() {
        PayLoad payLoad = new PayLoad();
        payLoad.setType(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        return payLoad;
    }

    public static PayLoad create(int type) {
        PayLoad payLoad = new PayLoad();
        payLoad.setType(type);
        return payLoad;
    }

}
